package com.dfbz.bigdata.modules.system.shop.order.doman;



import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单表
 * @TableName tb_uandd_orders
 */
@TableName(value ="tb_uandd_orders")
@Data
public class UanddOrders implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long udOdId;

    /**
     * 订单号
     */
    private String udOdNum;

    /**
     * 下单用户
     */
    private Long userId;

    /**
     * 设计师id
     */
    private Long udOdDesignerId;

    /**
     * 下单时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date udOdCreatetime;

    /**
     * 结账时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date udOdCheckouttime;

    /**
     * 实付价格
     */
    private BigDecimal udOdActualprice;

    /**
     * 保险id
     */
    private Long safeId;

    /**
     * 设计服务id
     */
    private Long serviceId;

    /**
     * 创建时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

    /**
     * 创建人
     */
    private Long createUser;

    /**
     * 修改人
     */
    private Long updateUser;

    /**
     * 是否删除
     */
    @TableLogic(value = "0",delval = "1")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UanddOrders other = (UanddOrders) that;
        return (this.getUdOdId() == null ? other.getUdOdId() == null : this.getUdOdId().equals(other.getUdOdId()))
            && (this.getUdOdNum() == null ? other.getUdOdNum() == null : this.getUdOdNum().equals(other.getUdOdNum()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getUdOdDesignerId() == null ? other.getUdOdDesignerId() == null : this.getUdOdDesignerId().equals(other.getUdOdDesignerId()))
            && (this.getUdOdCreatetime() == null ? other.getUdOdCreatetime() == null : this.getUdOdCreatetime().equals(other.getUdOdCreatetime()))
            && (this.getUdOdCheckouttime() == null ? other.getUdOdCheckouttime() == null : this.getUdOdCheckouttime().equals(other.getUdOdCheckouttime()))

            && (this.getUdOdActualprice() == null ? other.getUdOdActualprice() == null : this.getUdOdActualprice().equals(other.getUdOdActualprice()))
            && (this.getSafeId() == null ? other.getSafeId() == null : this.getSafeId().equals(other.getSafeId()))
            && (this.getServiceId() == null ? other.getServiceId() == null : this.getServiceId().equals(other.getServiceId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUdOdId() == null) ? 0 : getUdOdId().hashCode());
        result = prime * result + ((getUdOdNum() == null) ? 0 : getUdOdNum().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getUdOdDesignerId() == null) ? 0 : getUdOdDesignerId().hashCode());
        result = prime * result + ((getUdOdCreatetime() == null) ? 0 : getUdOdCreatetime().hashCode());
        result = prime * result + ((getUdOdCheckouttime() == null) ? 0 : getUdOdCheckouttime().hashCode());
        result = prime * result + ((getUdOdActualprice() == null) ? 0 : getUdOdActualprice().hashCode());
        result = prime * result + ((getSafeId() == null) ? 0 : getSafeId().hashCode());
        result = prime * result + ((getServiceId() == null) ? 0 : getServiceId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", udOdId=").append(udOdId);
        sb.append(", udOdNum=").append(udOdNum);
        sb.append(", userId=").append(userId);
        sb.append(", udOdDesignerId=").append(udOdDesignerId);
        sb.append(", udOdCreatetime=").append(udOdCreatetime);
        sb.append(", udOdCheckouttime=").append(udOdCheckouttime);
        sb.append(", udOdActualprice=").append(udOdActualprice);
        sb.append(", safeId=").append(safeId);
        sb.append(", serviceId=").append(serviceId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", createUser=").append(createUser);
        sb.append(", updateUser=").append(updateUser);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}